package com.xie.test;

import org.apache.commons.lang3.StringUtils;

/**
 * @author xiezhendong
 * @date 2021/11/29
 */
public class test4 {

    public static void main(String[] args) {
        String serialNo = StringUtils.leftPad("1", 12, "0");
        System.out.println(serialNo);

        long number = Long.parseLong(serialNo);
        String lastestSwBlNoCount = StringUtils.leftPad(String.valueOf(number + 1), serialNo.length(), "0");

        System.out.println(lastestSwBlNoCount);
    }
}
